package base.day24;

import java.io.FileReader;
import java.io.IOException;

public class MyCharacterStream3 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("E:\\java\\java project\\java-code\\a.txt");
        char[] chars=new char[1024];
        int len;
        while ((len=fr.read(chars))!=-1){

            System.out.println(new String(chars,0,len));
        }
        fr.close();


    }
}
